export default [
  {
    path: 'createStore',
    name: 'CreateStore',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/createStore/index'),
    meta: {
      title: 'createStore',
      code: 'Mall',
      icon: 'el-icon-s-shop',
      allIdentity: false,
      deleteItem: false,
      deleteCode: false,
      identity: [{ code: 'Mall', title: 'route.mall' }],
      parentRouteName: 'CreateStore'
    }
  },
  {
    path: 'grouping',
    name: 'Grouping',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/grouping/index'),
    meta: {
      title: 'grouping',
      code: 'Mall',
      icon: 'el-icon-copy-document',
      allIdentity: false,
      deleteItem: false,
      deleteCode: false,
      // 控制不能选择的标记
      disableCode: 'Mall',
      // 控制是否不能操作
      diablesValue: true,
      identity: [{ code: 'Mall', title: 'route.mall' }],
      parentRouteName: 'Grouping'
    }
  },
  {
    path: 'goods',
    name: 'Goods',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/goods/index'),
    meta: {
      title: 'mallGoods',
      code: 'Mall',
      icon: 'el-icon-box',
      activeMenu: '/mall/goods',
      deleteItem: true,
      deleteCode: true,
      deleteThis: true,
      // 控制不能选择的标记
      disableCode: 'Mall',
      // 控制是否不能操作
      diablesValue: true,
      identity: [{ code: 'Mall', title: 'route.mall' }],
      parentRouteName: 'goodsType'
    },
    children: [
      {
        path: '',
        name: 'goodsType',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/goods/goodsType'),
        meta: {
          title: 'goodsList',
          code: 'Mall',
          icon: 'el-icon-box',
          activeMenu: '/mall/goods',
          identity: [{ code: 'Mall', title: 'route.mall' }],
          parentRouteName: 'goodsType'
        }
      },
      {
        path: 'goodsListOnShelf',
        name: 'GoodsListOnShelf',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/goods/goodsListOnShelf'),
        meta: {
          title: 'goodsList',
          code: 'Mall',
          icon: 'el-icon-box',
          activeMenu: '/mall/goods',
          identity: [{ code: 'Mall', title: 'route.mall' }],
          parentRouteName: 'goodsType'
        }
      },
      {
        path: 'goodsListInStorage',
        name: 'GoodsListInStorage',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/goods/goodsListInStorage'),
        meta: {
          title: 'goodsList',
          code: 'Mall',
          icon: 'el-icon-box',
          activeMenu: '/mall/goods',
          identity: [{ code: 'Mall', title: 'route.mall' }],
          parentRouteName: 'goodsType'
        }
      },
      {
        path: 'addGoods',
        name: 'AddGoods',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/goods/editGoods'),
        meta: {
          title: 'addGoods',
          code: 'Mall',
          icon: 'el-icon-box',
          activeMenu: '/mall/goods',
          identity: [{ code: 'Mall', title: 'route.mall' }],
          parentRouteName: 'goodsType'
        }
      },
      {
        path: 'editGoods/:id',
        name: 'EditGoods',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/goods/editGoods'),
        meta: {
          title: 'editGoods',
          code: 'Mall',
          icon: 'el-icon-box',
          activeMenu: '/mall/goods',
          identity: [{ code: 'Mall', title: 'route.mall' }],
          parentRouteName: 'goodsType'
        }
      }
    ]
  },
  {
    path: 'data',
    name: 'ShopData',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/shopData/index'),
    meta: {
      title: 'shopData',
      code: 'Mall',
      icon: 'el-icon-data-analysis',
      allIdentity: false,
      deleteItem: false,
      deleteCode: false,
      // 控制不能选择的标记
      disableCode: 'Mall',
      // 控制是否不能操作
      diablesValue: true,
      identity: [{ code: 'Mall', title: 'route.mall' }],
      parentRouteName: 'ShopData'
    }
  },
  {
    path: 'express',
    name: 'Express',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/express/index'),
    meta: {
      title: 'express',
      code: 'Mall',
      icon: 'el-icon-truck',
      allIdentity: false,
      deleteItem: false,
      deleteCode: false,
      // 控制不能选择的标记
      disableCode: 'Mall',
      // 控制是否不能操作
      diablesValue: true,
      identity: [{ code: 'Mall', title: 'route.mall' }],
      parentRouteName: 'Express'
    }
  },
  {
    path: 'carousel',
    name: 'Carousel',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/carousel/index'),
    meta: {
      title: 'carousel',
      code: 'Mall',
      icon: 'el-icon-picture',
      allIdentity: false,
      deleteItem: false,
      deleteCode: false,
      // 控制不能选择的标记
      disableCode: 'Mall',
      // 控制是否不能操作
      diablesValue: true,
      identity: [{ code: 'Mall', title: 'route.mall' }],
      parentRouteName: 'Carousel'
    }
  },
  {
    path: 'recycle',
    name: 'Recycle',
    component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/recycle/index'),
    meta: {
      title: 'recycle',
      code: 'Mall',
      icon: 'el-icon-delete-solid',
      allIdentity: false,
      deleteItem: false,
      deleteCode: false,
      // 控制不能选择的标记
      disableCode: 'Mall',
      // 控制是否不能操作
      diablesValue: true,
      identity: [{ code: 'Mall', title: 'route.mall' }],
      parentRouteName: 'Recycle'
    },
    children: [
      {
        path: 'editRecycle:id',
        name: 'EditRecycle',
        hidden: true,
        component: () => import(/* webpackChunkName: "platform" */ '@/views/mall/recycle/editRecycle'),
        meta: {
          title: 'editRecycle',
          code: 'Mall',
          icon: 'el-icon-delete-solid',
          activeMenu: '/mall/recycle',
          identity: [{ code: 'Mall', title: 'route.mall' }],
          parentRouteName: 'Recycle'
        }
      }
    ]
  }

];
